// vue.config.js
module.exports = {
  // eslint-disable-next-line no-path-concat
  lintOnSave: false,
  outputDir: __dirname + '/../glack-blog-serve/dist',
  publicPath: './',
  devServer: {
    proxy: {
      '/api': {    // 定义代理的名称
        target: 'https://glack.net', // 代理的域名
        changeOrigin: true,  // 是否启动代理
        pathRewrite: {
          '^/api': ''
        }
      }
    },
    overlay: {
      warnings: false,
      errors: false,
    },
    historyApiFallback: {
      rewrites: [
        { from: /aritcle/, to: '/article2' },
  
      ]
    }
  }
}
